import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import { Provider } from 'react-redux'
// 2. 创建store，并导入
import store from './store/index'
ReactDOM.render(
    // 3.使用Provider组件，给React绑定Store
    <Provider store={store}>
        <App />
    </Provider>,
    document.getElementById('root'));